package com.zhy.mysocketdemo;

/**
 * @ClassName SocketErrorBean
 * @Description TODO
 * @Author zhouhongyang
 * @DATE 2021/10/9 11:39 下午
 * @Version 1.0
 */
public class SocketErrorBean {

    /**
     * jsonrpc : 2.0
     * id : 0
     * error : {"message":"Unavailable terminal: '63213442'. ","data":{"tid":"63213442","userMessage":"'63213442' is unavailable. Please try again in 10 seconds or check the PDQ screen and cabling or restart the PDQ. Contact support if the problem persists."},"code":-32075}
     */

    private String jsonrpc;
    private int id;
    private ErrorBean error;

    public String getJsonrpc() {
        return jsonrpc;
    }

    public void setJsonrpc(String jsonrpc) {
        this.jsonrpc = jsonrpc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public static class ErrorBean {
        /**
         * message : Unavailable terminal: '63213442'.
         * data : {"tid":"63213442","userMessage":"'63213442' is unavailable. Please try again in 10 seconds or check the PDQ screen and cabling or restart the PDQ. Contact support if the problem persists."}
         * code : -32075
         */

        private String message;
        private DataBean data;
        private int code;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public DataBean getData() {
            return data;
        }

        public void setData(DataBean data) {
            this.data = data;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public static class DataBean {
            /**
             * tid : 63213442
             * userMessage : '63213442' is unavailable. Please try again in 10 seconds or check the PDQ screen and cabling or restart the PDQ. Contact support if the problem persists.
             */

            private String tid;
            private String userMessage;

            public String getTid() {
                return tid;
            }

            public void setTid(String tid) {
                this.tid = tid;
            }

            public String getUserMessage() {
                return userMessage;
            }

            public void setUserMessage(String userMessage) {
                this.userMessage = userMessage;
            }
        }
    }
}
